//
//  CustomPalyerView.h
//  TEst
//
//  Created by xbnzd on 16/10/17.
//  Copyright © 2016年 xbnzd. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface LZCustomPlayerView : UIView
@property (nonatomic, assign) BOOL isPlaying; //获取状态,是否正在播放
@property (nonatomic, assign) BOOL playCircle;  //标记视频是否是循环播放
@property (nonatomic, copy) void(^playEndBlock)(void);  //播放一遍完成回调
@property (nonatomic, copy) void(^videoCanbePlayBlock)(void);//准备好播放后再add到视图
@property (nonatomic, copy) void(^loadVideoFailBlock)(void); //视频加载失败


- (void)updateURL:(NSURL *)playURL;

/**
 *  @author Zhoudan, 16-10-26 19:10:12
 *
 *  开始播放
 */
- (void)playAction;


/**
 继续播放
 */
- (void)goOnAction;

/**
 *  @author Zhoudan, 16-10-26 19:10:33
 *
 *  停止播放
 */
- (void)stopAction;


/**
 *  @author Zhoudan, 16-10-17 15:10:38
 *
 *  暂停播放
 */
- (void)pauseAction;


@end
